CVE-2021-3899
Microsoft Windows Replaced Executable Detection Remote Command Execution Vulnerability
Description
There is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an attacker to execute arbitrary code as root.
INFO
Published Date :
June 3, 2024, 7:15 p.m.
Last Modified :
Aug. 26, 2025, 5:21 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | ||||
| CVSS 3.1 | HIGH | [email protected] | 
Solution
- Update the affected packages.
- Apply the latest patches.
Public PoC/Exploit Available at Github
                                            CVE-2021-3899 has a 5 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2021-3899.
                                        
| URL | Resource | 
|---|---|
| https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 | Issue Tracking Patch | 
| https://ubuntu.com/security/notices/USN-5427-1 | Vendor Advisory | 
| https://www.cve.org/CVERecord?id=CVE-2021-3899 | Third Party Advisory | 
| https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 | Issue Tracking Patch | 
| https://ubuntu.com/security/notices/USN-5427-1 | Vendor Advisory | 
| https://www.cve.org/CVERecord?id=CVE-2021-3899 | Third Party Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2021-3899 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2021-3899
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
All CVE - PoC in GitHub
poc proofofconcept tester allcve cvegithub cvenew cvepoc cveupdate
None
None
None
race condition in apport lead to Local Privilege Escalation on Ubuntu
Makefile Assembly C
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2021-3899 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2021-3899 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            Initial Analysis by [email protected]Aug. 26, 2025 Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:canonical:apport:*:*:*:*:*:*:*:* versions up to (excluding) 2.21.0 Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:22.04:*:*:*:lts:*:*:* Added Reference Type CVE: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 Types: Issue Tracking, Patch Added Reference Type Canonical Ltd.: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 Types: Issue Tracking, Patch Added Reference Type CVE: https://ubuntu.com/security/notices/USN-5427-1 Types: Vendor Advisory Added Reference Type Canonical Ltd.: https://ubuntu.com/security/notices/USN-5427-1 Types: Vendor Advisory Added Reference Type CVE: https://www.cve.org/CVERecord?id=CVE-2021-3899 Types: Third Party Advisory Added Reference Type Canonical Ltd.: https://www.cve.org/CVERecord?id=CVE-2021-3899 Types: Third Party Advisory 
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 Added Reference https://ubuntu.com/security/notices/USN-5427-1 Added Reference https://www.cve.org/CVERecord?id=CVE-2021-3899 
- 
                            CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0Aug. 19, 2024 Action Type Old Value New Value Added CWE CISA-ADP CWE-367 Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 
- 
                            CVE Received by [email protected]Jun. 03, 2024 Action Type Old Value New Value Added Description There is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an attacker to execute arbitrary code as root. Added Reference Canonical Ltd. https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 [No types assigned] Added Reference Canonical Ltd. https://ubuntu.com/security/notices/USN-5427-1 [No types assigned] Added Reference Canonical Ltd. https://www.cve.org/CVERecord?id=CVE-2021-3899 [No types assigned] 
 
                         
                         
                         
                                             
                                            